package ckw.database.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import core.communication.message.MessageType;
import core.database.AbstractEntity;

@Entity
@Table(name = "messageToSend")
public class MessageToSend extends AbstractEntity {
	@Column(name = "value")
	@Type(type = "text")
	private String value;

	@Column(name = "type", nullable = false)
	@Enumerated(EnumType.STRING)
	private MessageType type;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public MessageType getType() {
		return type;
	}

	public void setType(MessageType type) {
		this.type = type;
	}
}
